﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
	content="width=device-width, initial-scale=1 , user-scalable=no">
<title>sign</title>
<meta name="Generator" content="tingyun" />
<link rel="stylesheet" href="../static/style/client.css">
	<script type="text/javascript"
		src="../static/jquery/jquery-1.10.2.min.js"></script>
	<script type="text/javascript">
		$(function() {
			$("#login").click(login);
		});

		function login() {
			$.post('../manager/login', {
				"managerName" : $("#managerName").val(),
				"passWord" : $("#passWord").val()
			}, function(data) {
				if (data.result == 2) {
					window.location.href = "../view/sign";
				} else {
					$("#error_info").show();
				}
			}, 'json');
		}
	</script>
</head>
<body id="bodybj">
	<div class="login">
		<div class="c_logo1">
			<img src="../static/images/c_logo.png" alt="logo" width="110"
				height="75">
		</div>
		<div class="login_tit">听云FIELD MARKETING活动统计系统</div>
		<div class="login_box">
			<div class="c_user">
				<input type="text" id="managerName" name="managerName"
					placeholder="请输入用户名">
			</div>
			<div class="c_password">
				<input type="password" id="passWord" name="passWord"
					placeholder="请输入密码">
			</div>
			<div class="error_info" id="error_info" style="display:none">用户名或密码错误，请核对后重新输入!</div>
		</div>
		<div class="but_signin" id="login" value="登陆" name="login">登录</div>
	</div>
</body>
</html>